package com.example.votemanage.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.votemanage.entity.VoteOption;
import com.example.votemanage.mapper.VoteOptionMapper;
import com.example.votemanage.service.IVoteOptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xingcheng
 * @since 2024-06-06
 */
@Service
public class VoteOptionServiceImpl extends ServiceImpl<VoteOptionMapper, VoteOption> implements IVoteOptionService {

    @Override
    public  List<VoteOption> selectById(Integer id) {
        return baseMapper.selectByVsId(id);
    }

    @Override
    public List<VoteOption> selectByVoId(Integer[] voId) {
        return baseMapper.selectByVoId(voId);
    }

}
